//
//  MainTableViewCell.m
//  USB_Reader
//
//  Created by xiaozao on 15/3/21.
//  Copyright (c) 2015年 Tony_Wang. All rights reserved.
//

#import "MainTableViewCell.h"

@implementation MainTableViewCell

- (void)dealloc
{
    [_novelLabel release];
    [_arr release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.novelLabel = [[UILabel alloc] init];
        [self.contentView addSubview:_novelLabel];
        [_novelLabel release];
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.novelLabel.frame = CGRectMake(0, 0, self.contentView.frame.size.width, self.contentView.frame.size.height);
//    self.arr = [NSMutableString string];
    self.novelLabel.text = self.arr;
    self.novelLabel.numberOfLines = 0;
    [self.novelLabel sizeToFit];
//    NSLog(@"%@", self.arr);
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
